package com.mmz.spring.aop.framework;

import java.util.LinkedList;
import java.util.List;





public class ProxyCreatorSupport extends AdvisedSupport {
	
	private DefaultAopProxyFactory aopProxyFactory;
	
	// 监听器列表，在第一次创建代理对象是唤醒监听
	// private List<AdvisedSupportListener> listeners = new LinkedList<AdvisedSupportListener>();
	
	// 标志代理对象是不是第一次创建
	private boolean active = false;
	
	
	public ProxyCreatorSupport() {
		this.aopProxyFactory = new DefaultAopProxyFactory();
	}
	
	protected final synchronized AopProxy createAopProxy() {
		if (!this.active) {
			//activate();
		}
		return this.aopProxyFactory.createAopProxy(this);
	}

}
